package TransactionImplementation

//更改受薪事务
//引入类
import (
	"SalaryPayment/AbstractTransaction"
	"SalaryPayment/Model"
	"SalaryPayment/ModelImplementation"
)

//结构体
type ChangeSalariedTransaction struct {
	AbstractTransaction.ChangeClassificationTransaction
	itsSalary float64
}

//支付分类
func (a *ChangeSalariedTransaction) GetClassification() Model.PaymentClassification {
	//返回薪资分类
	return ModelImplementation.NewSalariedClassification(a.itsSalary)
}

//付款时间表
func (a *ChangeSalariedTransaction) GetSchedule() Model.PaymentSchedule {
	//返回每月时间表
	return ModelImplementation.MonthlySchedule{}
}

